<template>
  <div>
      <el-dialog title="注册" center :visible.sync="showDialongFrimVisible" width="30%">
      <el-form
        :model="RegisterUser"
        :rules="rules"
        status-icon
        ref="ruleForm"
        class="demo-ruleForm"
      >
        <el-form-item prop="name">
          <el-input
            prefix-icon="el-icon-user-solid"
            placeholder="请输入账号"
            v-model="RegisterUser.name"
          ></el-input>
        </el-form-item>
        <el-form-item prop="pass">
          <el-input
            prefix-icon="el-icon-view"
            type="password"
            placeholder="请输入密码"
            v-model="RegisterUser.pass"
          ></el-input>
        </el-form-item>
     
        <el-form-item>
          <el-button size="medium" type="primary" @click="register" style="width:100%;">注册</el-button>
        </el-form-item>
      </el-form>
    </el-dialog>
  </div>
</template>
<script>
export default {
    name:"Login",
  data() {
    return {
       showDialongFrimVisible: false,
     RegisterUser: {
        name: "",
        pass: "",
        confirmPass: ""
      },
    };
  },
  methods: {
      showDialog() {
      this.showDialongFrimVisible = true;
    },
  },
};
</script>